package org.example.demo8_prototype;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Excel implements Cloneable{
    //新图表的编号、颜色和数据
    private Integer number;
    private String color;
    private String data;

    @Override
    public Excel clone() throws CloneNotSupportedException {
        return (Excel) super.clone();
    }
    public void show(){
        System.out.println("图表的编号为"+ number);
        System.out.println("颜色为："+ color);
        System.out.println("数据为："+ data);
    }
}
